﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000169 RID: 361
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyRogueShopBuffScRsp : IMessage<BuyRogueShopBuffScRsp>, IMessage, IEquatable<BuyRogueShopBuffScRsp>, IDeepCloneable<BuyRogueShopBuffScRsp>, IBufferMessage
	{
		// Token: 0x170004D3 RID: 1235
		// (get) Token: 0x06001057 RID: 4183 RVA: 0x0002FF35 File Offset: 0x0002E135
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyRogueShopBuffScRsp> Parser
		{
			get
			{
				return BuyRogueShopBuffScRsp._parser;
			}
		}

		// Token: 0x170004D4 RID: 1236
		// (get) Token: 0x06001058 RID: 4184 RVA: 0x0002FF3C File Offset: 0x0002E13C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyRogueShopBuffScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004D5 RID: 1237
		// (get) Token: 0x06001059 RID: 4185 RVA: 0x0002FF4E File Offset: 0x0002E14E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyRogueShopBuffScRsp.Descriptor;
			}
		}

		// Token: 0x0600105A RID: 4186 RVA: 0x0002FF55 File Offset: 0x0002E155
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopBuffScRsp()
		{
		}

		// Token: 0x0600105B RID: 4187 RVA: 0x0002FF60 File Offset: 0x0002E160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopBuffScRsp(BuyRogueShopBuffScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueBuffInfo_ = ((other.rogueBuffInfo_ != null) ? other.rogueBuffInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600105C RID: 4188 RVA: 0x0002FFAC File Offset: 0x0002E1AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopBuffScRsp Clone()
		{
			return new BuyRogueShopBuffScRsp(this);
		}

		// Token: 0x170004D6 RID: 1238
		// (get) Token: 0x0600105D RID: 4189 RVA: 0x0002FFB4 File Offset: 0x0002E1B4
		// (set) Token: 0x0600105E RID: 4190 RVA: 0x0002FFBC File Offset: 0x0002E1BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170004D7 RID: 1239
		// (get) Token: 0x0600105F RID: 4191 RVA: 0x0002FFC5 File Offset: 0x0002E1C5
		// (set) Token: 0x06001060 RID: 4192 RVA: 0x0002FFCD File Offset: 0x0002E1CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GLCCJMLODBH RogueBuffInfo
		{
			get
			{
				return this.rogueBuffInfo_;
			}
			set
			{
				this.rogueBuffInfo_ = value;
			}
		}

		// Token: 0x06001061 RID: 4193 RVA: 0x0002FFD6 File Offset: 0x0002E1D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyRogueShopBuffScRsp);
		}

		// Token: 0x06001062 RID: 4194 RVA: 0x0002FFE4 File Offset: 0x0002E1E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyRogueShopBuffScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueBuffInfo, other.RogueBuffInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001063 RID: 4195 RVA: 0x00030034 File Offset: 0x0002E234
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueBuffInfo_ != null)
			{
				num ^= this.RogueBuffInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001064 RID: 4196 RVA: 0x00030089 File Offset: 0x0002E289
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001065 RID: 4197 RVA: 0x00030091 File Offset: 0x0002E291
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001066 RID: 4198 RVA: 0x0003009C File Offset: 0x0002E29C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueBuffInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.RogueBuffInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001067 RID: 4199 RVA: 0x000300F8 File Offset: 0x0002E2F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueBuffInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueBuffInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001068 RID: 4200 RVA: 0x00030150 File Offset: 0x0002E350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyRogueShopBuffScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueBuffInfo_ != null)
			{
				if (this.rogueBuffInfo_ == null)
				{
					this.RogueBuffInfo = new GLCCJMLODBH();
				}
				this.RogueBuffInfo.MergeFrom(other.RogueBuffInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001069 RID: 4201 RVA: 0x000301B8 File Offset: 0x0002E3B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600106A RID: 4202 RVA: 0x000301C4 File Offset: 0x0002E3C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueBuffInfo_ == null)
					{
						this.RogueBuffInfo = new GLCCJMLODBH();
					}
					input.ReadMessage(this.RogueBuffInfo);
				}
			}
		}

		// Token: 0x040006EA RID: 1770
		private static readonly MessageParser<BuyRogueShopBuffScRsp> _parser = new MessageParser<BuyRogueShopBuffScRsp>(() => new BuyRogueShopBuffScRsp());

		// Token: 0x040006EB RID: 1771
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006EC RID: 1772
		public const int RetcodeFieldNumber = 13;

		// Token: 0x040006ED RID: 1773
		private uint retcode_;

		// Token: 0x040006EE RID: 1774
		public const int RogueBuffInfoFieldNumber = 12;

		// Token: 0x040006EF RID: 1775
		private GLCCJMLODBH rogueBuffInfo_;
	}
}
